package cn.silver.module.system.param;

import cn.silver.framework.core.utils.DateUtils;
import cn.silver.framework.mybatis.annotation.TableField;
import cn.silver.framework.mybatis.enums.SearchTypeEnums;
import cn.silver.framework.mybatis.param.BusParam;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 用户信息业务对象 sys_user
 *
 * @author Michelle.Chung
 */

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class UserParam extends BusParam {
    @TableField(name = "type", searchType = SearchTypeEnums.EQ)
    private String type;
    @TableField(name = "sex", searchType = SearchTypeEnums.EQ)
    private String sex;
    @TableField(name = "mobile", searchType = SearchTypeEnums.LIKE)
    private String mobile;
    @TableField(name = "email", searchType = SearchTypeEnums.LIKE)
    private String email;
    @TableField(name = "create_time", searchType = SearchTypeEnums.BETWEEN)
    @JsonFormat(timezone = DateUtils.TIME_ZONE, pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    private Date createTime;
}
